package com.example.guidedanimationdemo

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_animate.*

class AnimateActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_animate)
        guideview1.visibility = View.VISIBLE
        guideview2.visibility = View.VISIBLE
        var type = intent.getIntExtra("type", 1)
        if (type == 1){
            guideview1.visibility = View.VISIBLE
            guideview1.setDoDraw(true)
        }else if (type == 2){
            guideview2.visibility = View.VISIBLE 
            guideview2.setDoDraw(true)
        }else if (type == 3){
            guideview2.visibility = View.VISIBLE
            guideview2.setType(VideoDetailGuideView3.GUIDE_SHOW_TYPE_DOUBLE)
            guideview2.setDoDraw(true)
        }
    }
}